package com.zycfc.zsf.boot.mybatis.generator.codegen.main;

public class DataSourceConfig
{
    private String dbType;
    private String url;
    private String driverName;
    private String username;
    private String password;
    
    public String getDbType() {
        return this.dbType;
    }
    
    public String getUrl() {
        return this.url;
    }
    
    public String getDriverName() {
        return this.driverName;
    }
    
    public String getUsername() {
        return this.username;
    }
    
    public String getPassword() {
        return this.password;
    }
    
    public void setDbType(final String dbType) {
        this.dbType = dbType;
    }
    
    public void setUrl(final String url) {
        this.url = url;
    }
    
    public void setDriverName(final String driverName) {
        this.driverName = driverName;
    }
    
    public void setUsername(final String username) {
        this.username = username;
    }
    
    public void setPassword(final String password) {
        this.password = password;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof DataSourceConfig)) {
            return false;
        }
        final DataSourceConfig other = (DataSourceConfig)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$dbType = this.getDbType();
        final Object other$dbType = other.getDbType();
        Label_0065: {
            if (this$dbType == null) {
                if (other$dbType == null) {
                    break Label_0065;
                }
            }
            else if (this$dbType.equals(other$dbType)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        Label_0102: {
            if (this$url == null) {
                if (other$url == null) {
                    break Label_0102;
                }
            }
            else if (this$url.equals(other$url)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$driverName = this.getDriverName();
        final Object other$driverName = other.getDriverName();
        Label_0139: {
            if (this$driverName == null) {
                if (other$driverName == null) {
                    break Label_0139;
                }
            }
            else if (this$driverName.equals(other$driverName)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$username = this.getUsername();
        final Object other$username = other.getUsername();
        Label_0176: {
            if (this$username == null) {
                if (other$username == null) {
                    break Label_0176;
                }
            }
            else if (this$username.equals(other$username)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$password = this.getPassword();
        final Object other$password = other.getPassword();
        if (this$password == null) {
            if (other$password == null) {
                return true;
            }
        }
        else if (this$password.equals(other$password)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof DataSourceConfig;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $dbType = this.getDbType();
        result = result * 59 + (($dbType == null) ? 43 : $dbType.hashCode());
        final Object $url = this.getUrl();
        result = result * 59 + (($url == null) ? 43 : $url.hashCode());
        final Object $driverName = this.getDriverName();
        result = result * 59 + (($driverName == null) ? 43 : $driverName.hashCode());
        final Object $username = this.getUsername();
        result = result * 59 + (($username == null) ? 43 : $username.hashCode());
        final Object $password = this.getPassword();
        result = result * 59 + (($password == null) ? 43 : $password.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "DataSourceConfig(dbType=" + this.getDbType() + ", url=" + this.getUrl() + ", driverName=" + this.getDriverName() + ", username=" + this.getUsername() + ", password=" + this.getPassword() + ")";
    }
}
